package com.example.messagemodule.adapter;

import android.graphics.Color;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.messagemodule.R;
import com.example.messagemodule.entity.DirectionUsingMedicineEntity;

import java.util.ArrayList;
import java.util.List;

public class CommonAdapter extends BaseQuickAdapter<DirectionUsingMedicineEntity.DataBean.CommonListBean, BaseViewHolder> {
    public CommonAdapter(@Nullable List<DirectionUsingMedicineEntity.DataBean.CommonListBean> data) {
        super(R.layout.item_common, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DirectionUsingMedicineEntity.DataBean.CommonListBean item) {

//        android:textColor="#FF8500"
//        android:background="@drawable/item_attention_bg"
//
        helper.setText(R.id.item_common_content,item.getCommonTitle());

    }
}
